<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
         * {
            margin: 0;
            padding: 0;
        }
        .box {
            margin: 0 auto;
        }
        li {
            position: relative;
            width: 202px;
            height: 380px;
            list-style: none;
            margin: 0 10px;
            float: left;
            
        }
        li div {
            position: absolute;
            left: 0;
            top: 0;
            transition: all 1s;
        }
        li .front {
            z-index: 1;
            backface-visibility: hidden;
        }
        li .after {
            transform: rotateY(180deg);
        }
        li:hover .front {
            transform: rotateY(180deg);
        }
        li:hover .after {
            transform: rotateY(0deg);
        }
    </style>
</head>
<body>
    
</body>
</html>
    
   
</head>
<body>
    <div class="box"> 
        <ul>
            <li>
                <div class="front">
                    <img src="./images/1.jpg" alt="">
                </div>
                <div class="after">
                    <img src="./images/6.jpg" alt="">
                </div>
            </li>
        </ul>
